import request from "@/utils/request";
import { AxiosPromise } from "axios";
import {BillSummaryQuery, BillSummaryPageVO} from "@/api/billSummary/types";



/**
 * 标准账单单汇总分页数据
 *
 * @param queryParams
 */
export function getBillSummaryPage(
	queryParams: BillSummaryQuery
): AxiosPromise<PageResult<BillSummaryPageVO[]>> {
	return request({
		url: '/api/v1/billSummary/summaryPage',
		method: 'get',
		params: queryParams
	});
}

export function testGenerateBillSummary(queryParams: BillSummaryQuery) {
	return request({
		url: '/api/v1/billSummary/testGenerateBillSummary',
		method: 'get',
		params: queryParams
	});
}

export function exportCertificate(queryParams: BillSummaryQuery) {
	return request({
		url: '/api/v1/billSummary/_export',
		method: 'get',
		params: queryParams,
		responseType: 'arraybuffer'
	});
}

